#include "callibrationresult.h"
#include <functions.h>
#include <QHBoxLayout>
CallibrationResult::CallibrationResult(QWidget *parent) :
    QWidget(parent)
{
    iv1 = new ImageView(this);
    iv2 = new ImageView(this);
    QHBoxLayout* lay = new QHBoxLayout(this);
    this->setLayout(lay);
    lay->addWidget(iv1);
    lay->addWidget(iv2);
}
 void CallibrationResult::showPair(Mat x,Mat y)
 {

     iv1->setImage(Functions::createQImage(x));
     iv1->update();

     iv2->setImage(Functions::createQImage(y));
     iv2->update();
 }
